package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.UserNoAchievement;
import com.yunshang.shoppingmall.mapper.UserNoAchievementMapper;
import com.yunshang.shoppingmall.service.UserNoAchievementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userNoAchievementService")
public class UserNoAchievementServiceImpl implements UserNoAchievementService {
    @Autowired
    UserNoAchievementMapper userNoAchievementMapper;

    @Override
    public int deleteByPrimaryKey(Integer unaId) {
        return userNoAchievementMapper.deleteByPrimaryKey(unaId);
    }

    @Override
    public int insert(UserNoAchievement record) {
        return insert(record);
    }

    @Override
    public int insertSelective(UserNoAchievement record) {
        return userNoAchievementMapper.insertSelective(record);
    }

    @Override
    public UserNoAchievement selectByPrimaryKey(Integer unaId) {
        return userNoAchievementMapper.selectByPrimaryKey(unaId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserNoAchievement record) {
        return userNoAchievementMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserNoAchievement record) {
        return userNoAchievementMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<UserNoAchievement> selectUserNoAchievementList(UserNoAchievement userNoAchievement) {
        return userNoAchievementMapper.selectUserNoAchievementList(userNoAchievement);
    }

    @Override
    public double orderOpratorCost(UserNoAchievement userNoAchievement) {
        return userNoAchievementMapper.orderOpratorCost(userNoAchievement);
    }

    @Override
    public int updataByUserNoId(UserNoAchievement userNoAchievement) {
        return userNoAchievementMapper.updataByUserNoId(userNoAchievement);
    }
}
